<?php

require_once 'PHPMailer/QQMailer.class.php';

// 实例化 QQMailer
$mailer = new QQMailer(true);

// 添加附件
$mailer->addFile('a.txt');

//发给谁
$to = $_GET['to'] ? $_GET['to'] : "1668959220@qq.com";

//昵称
$nick = $_GET['nick'] ? $_GET['nick'] : "PHPer - wang";

// 邮件标题
$title = $_GET['title'] ? $_GET['title'] : 'http://www.wgf001.top/diy/mail/';

// 邮件内容
$content = $_GET['content'] ? $_GET['content'] : '<h1>Hello World999,标题的地址被访问</h1>';

// 发送QQ邮件
$re = $mailer->send($to,$nick, $title, $content);

var_dump($re);



?>